<?php 
namespace Popshouse\SiteBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="page_image")
 */
class Pageimage{
	
	
	/**
     * @orm:Id
     * @orm:Column(name="id",type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
	protected $id;
	
	/**
     * @orm:ManyToOne(targetEntity="Page", inversedBy="imgsSide", cascade={"all"})
     */
	protected $page;
	
	/**
     * @orm:ManyToOne(targetEntity="Pageimg", inversedBy="onPages")
     */
	protected $image;
	
	
	/**
     * @orm:Column(name="sort",type="integer")
     */
	protected $sort;
	/**
	 * @return the $id
	 */
	public function getId() {
		return $this->id;
	}

	/**
	 * @return the $page
	 */
	public function getPage() {
		return $this->page;
	}

	/**
	 * @return the $image
	 */
	public function getImage() {
		return $this->image;
	}

	/**
	 * @return the $sort
	 */
	public function getSort() {
		return $this->sort;
	}

	/**
	 * @param field_type $page
	 */
	public function setPage($page) {
		$this->page = $page;
	}

	/**
	 * @param field_type $image
	 */
	public function setImage($image) {
		$this->image = $image;
	}

	/**
	 * @param field_type $sort
	 */
	public function setSort($sort) {
		$this->sort = $sort;
	}

	
	
}